﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 解释器模式
{
    class Context
    {
        //上下文Model
        private string _word = string.Empty;

        public Context(string word)
        {
            _word = word;
        }

        public void Set(string newword){
            _word = newword;
        }

        public string  Get()
        {
            return _word;
        }
    
    }
}
